﻿@model e_commerce.Foreground.Models.Order


<div class="order">
    <div class="order-message-top">
        <span style="color:#bdbdbd;">下单时间 : </span><span class="order-time">@Model.CreateTime</span>
        <span style="color:#bdbdbd;">订单号 : </span><span class="order-id">@Model.OrderId</span>
    </div>
    <div class="order-message">
        <div class="goods-name w50">
            <img style="height:80px;width:80px;" src="@Model.Icon" />
            @Model.GoodsName × @Model.Count
        </div>
        <div class="goods-diver w125">无</div>
        <div class="order-price w125">￥@Model.Price</div>
        <div class="order-state w125">@Model.State</div>
        <div class="order-op w125">
            <input type="hidden" value="@Model.OrderId" />
            @if (Model.StateBar == 1)
            {
                <a href="/Page/PayOrder?orderId=@Model.OrderId">前去支付</a>
            }
            else if (Model.StateBar == 2)
            {

            }
            else if (Model.StateBar == 3)
            {
                <button type="button" class="get-order-bt">确认收货</button>
            }
            else if (Model.StateBar == 4)
            {
                <button type="button" class="get-order-bt">确认收货</button>
            }
            else if (Model.StateBar == 5)
            {

            }
            <a href="/ClientCenter/OrderDetail?orderId=@Model.OrderId">查看详情</a>
        </div>
    </div>
</div>